package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 光缆表对象 cables
 *
 * @author ruoyi
 * @date 2025-02-13         1
 */
public class Cables extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 光缆唯一标识 */
    private Long id;

    /** 光缆名称 */
    @Excel(name = "光缆名称")
    private String name;

    /** 光缆起点炮筒ID */
    @Excel(name = "光缆起点炮筒ID")
    private String startPoint;

    /** 光缆终点炮筒ID */
    @Excel(name = "光缆终点炮筒ID")
    private String endPoint;

    /** 光缆长度 */
    @Excel(name = "光缆长度")
    private BigDecimal length;

    /** 光缆类型（单模、多模等） */
    @Excel(name = "光缆类型", readConverterExp = "单=模、多模等")
    private String type;

    /** 所属支公司 */
    @Excel(name = "所属支公司")
    private String company;

    /** 光缆状态（正常、故障、维护中等） */
    @Excel(name = "光缆状态", readConverterExp = "正=常、故障、维护中等")
    private String status;

    /** 炮筒表信息 */
    private List<Manholes> manholesList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setStartPoint(String startPoint)
    {
        this.startPoint = startPoint;
    }

    public String getStartPoint()
    {
        return startPoint;
    }
    public void setEndPoint(String endPoint)
    {
        this.endPoint = endPoint;
    }

    public String getEndPoint()
    {
        return endPoint;
    }
    public void setLength(BigDecimal length)
    {
        this.length = length;
    }

    public BigDecimal getLength()
    {
        return length;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public List<Manholes> getManholesList()
    {
        return manholesList;
    }

    public void setManholesList(List<Manholes> manholesList)
    {
        this.manholesList = manholesList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("startPoint", getStartPoint())
            .append("endPoint", getEndPoint())
            .append("length", getLength())
            .append("type", getType())
            .append("company", getCompany())
            .append("status", getStatus())
            .append("manholesList", getManholesList())
            .toString();
    }
}
